package aop.Interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * Created by Administrator on 2017/3/28/028.
 */
public class MyMethodInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("+++++++前置+++++++++");
        methodInvocation.proceed();
        System.out.println("++++++++++++++++++++后置+++++++++++++++");
        return null;
    }
}
